﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TalksLog.Infrastructure.EFRepository.IdentityGenerater
{
    public class EntityIdentity
    {
        public int Identity { get; set; }

        public string EntityName { get; set; }
    }

    class EntityIdentityTypeConfiguration : EntityTypeConfiguration<EntityIdentity>
    {
        public EntityIdentityTypeConfiguration()
        {
            HasKey(e => e.EntityName);
            Property(e => e.EntityName).HasMaxLength(50);
        }
    }
}
